package com.example.jimanguang.Entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.List;

@Entity
@Table(name = "comictype")
@Getter
@Setter
public class ComicType extends  BaseEntity {

   private String TypeName;//分类名称

   @ManyToMany
   private List<Comics>  comics=new ArrayList<>();

   @JsonIgnore
   public List<Comics> getComics(){return comics;}
}
